package com.example.work3.entity;

import jakarta.persistence.*;
import lombok.Data;

@Entity
@Data
public class Student {
    @Id
    private int id;
    private String name;
    private int age;
    private String phone;
    @Column(name = "enrollment_date")
    private String enrollmentDate;
    @ManyToOne
    @JoinColumn(name = "major_id")
    private Major major;





}
